package edu.chl.da.ejb.persistency;

import edu.chl.da.ejb.core.Hotelreservation;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author Jakob
 */
@Stateless
public class HotelreservationFacade implements IHotelreservationFacade {
    @PersistenceContext(unitName = "airline_pu")
    private EntityManager em;

    @Override
    public void create(Hotelreservation hotelreservation) {
        em.persist(hotelreservation);
    }
}
